package cn.com.dhcc.turbo.entity.sysmgr.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.sysmgr.UserInfo;

public class UserInfoRowWapper  implements RowMapper<UserInfo>{

	@Override
	public UserInfo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		UserInfo vo = new UserInfo();
		vo.setId(rs.getString("id"));
		vo.setUserName(rs.getString("user_name"));
		vo.setPwd(rs.getString("pwd"));
		vo.setOwnId(rs.getString("own_id"));
		vo.setEmail(rs.getString("email"));
		vo.setTel(rs.getString("tel"));
		vo.setUserType(rs.getString("user_type"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setRemark(rs.getString("remark"));
		vo.setUserNameStr(rs.getString("userNameStr"));
		vo.setNodeName(rs.getString("nodeName"));
		return vo;
	}

}
